package com.iuhao.web.controller;

import com.alibaba.fastjson.JSONObject;

import com.cbim.service.OrderService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by yanhao on 2017/11/11.
 */
@Api(tags = "OrderController", description = "订单接口")
@RestController
@RequestMapping("/order")
public class OrderController {

    @Autowired
    private OrderService orderService;

    @PostMapping(value = "/getOrder")
    @ApiOperation(value = "getOrder")
    public JSONObject testCON() {

        JSONObject object = new JSONObject();

        object=orderService.getOrder();

        return object;
    }
}
